using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

namespace aqualba.portal.temporada_dir
{
    public partial class main_temporada : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<articulos> lista1 = new List<articulos>();

            List<articulos> lista2 = new List<articulos>();

            if (!Page.IsPostBack)
            {
                lista1 = articulos.getxListarticulosByidtemporadas(1,4);
                lista2 = articulos.getxListarticulosByidtemporadas(2,4);
                RepeaterPriVer.DataSource = lista1;
                RepeaterOtoInv.DataSource = lista2;
                RepeaterOtoInv.DataBind();
                RepeaterPriVer.DataBind();
                //List<categoriasarticulos> listaCats = new List<categoriasarticulos>();
                //listaCats = categoriasarticulos.getList();
                //RepeaterChekers.DataSource = listaCats;
                //RepeaterChekers.DataBind();



            }
            //List<string> LcategoriasArticulos = new List<string>();
            //foreach (RepeaterItem i in RepeaterChekers.Controls)
            //{
            //    CheckBox chk1 = (CheckBox)i.FindControl("chk");
            //    string idcategoriasarticulos = "";

            //    if (chk1 != null)
            //    {
            //        if (chk1.Checked)
            //        {
            //            idcategoriasarticulos = chk1.CssClass.ToString();
            //            LcategoriasArticulos.Add(idcategoriasarticulos);

            //        }
            //    }
            //}
            //  lista = articulos.getListarticulosByidtemporadas(1, LcategoriasArticulos);

        }
        protected void RepeaterChekers_ItemCommand(object sender, RepeaterCommandEventArgs e)
        {
        
        }

    }
}